from django.db import models

# Create your models here.
from App_ReadNovel.models import wordlist, bookmark
from App_AliPay.models import vip
class User(models.Model):
    userid = models.AutoField(primary_key=True)
    email = models.EmailField(max_length=255)
    password = models.CharField(max_length=255)
    wordlist = models.ManyToManyField(wordlist)
    bookmark = models.ManyToManyField(bookmark)
    vipstatus = models.CharField(max_length=2,default="0")
    viporder = models.ManyToManyField(vip)
    vipoverdue = models.DateTimeField(null=True)
    # vip_overdue_time = models.DateTimeField(auto_now=True)
    # viptime = models.TimeField(null=True)
    # viporder = models.ManyToManyField()

    class meta:
        db_table = "userinfo"